load("@fbcode_macros//build_defs:cpp_unittest.bzl", "cpp_unittest")

oncall("fbcode_entropy_wardens_folly")

cpp_unittest(
    name = "file_poller_test",
    srcs = ["FilePollerTest.cpp"],
    deps = [
        "//folly:file",
        "//folly:file_util",
        "//folly:singleton",
        "//folly/portability:gtest",
        "//folly/portability:sys_stat",
        "//folly/synchronization:baton",
        "//folly/testing:test_util",
        "//wangle/util:file_poller",
    ],
    external_deps = [
        "glog",
    ],
)

cpp_unittest(
    name = "multi_file_poller_test",
    srcs = [
        "MultiFilePollerTest.cpp",
    ],
    deps = [
        "//folly:file_util",
        "//folly:map_util",
        "//folly:string",
        "//folly/futures:core",
        "//folly/portability:gtest",
        "//folly/synchronization:saturating_semaphore",
        "//folly/testing:test_util",
        "//wangle/util:multi_file_poller",
    ],
)
